/*
 * @Author: delin66
 * @Date: 2024-12-01 18:04:42
 * @LastEditors: delin66
 * @LastEditTime: 2025-01-11 16:54:23
 * @Descripttion: 
 */

import request from './request';

// 获取各种文本信息
export function getParkIntroduce(id: number) {
  return request({
    url: '/kjy/mainpage/getInfo/' + id,
    method: 'get',
  });
}
// 获取入园条件
export const getEnterPark = () => request.get('/kjy/mainpage/getEnterPark');
// 查询各种活动公告列表
export function getAnnouncementList(query?: any) {
  return request({
    url: '/kjy/announcement/list',
    method: 'get',
    params: query,
  });
}

// 公告列表
export function getAnnouncement(query?: any) {
  return request({
    url: '/kjy/announcement/listAnnouncement',
    method: 'get',
    params: query,
  });
}
// 查询公告详细
export function getAnnouncementDetail(id: string | number) {
  return request({
    url: '/kjy/announcement/' + id,
    method: 'get',
  });
}
// 获取轮播图数据
export function getHomeBanner() {
  return request.get('/system/banner/2');
}
